﻿#region using...
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
#endregion

namespace Infusion.Silverlight.Controls.Ribbon
{
    #region : IRibbonTabGroupItem :
    public interface IRibbonTabGroupItem
    {
        RibbonTabGroup ParentRibbonTabGroup { get; set; }
        RibbonTabGroupItemRowSpan RibbonTabGroupItemRowSpan { get; }
    }
    #endregion

    #region : RibbonTabGroupItem :
    public abstract class RibbonTabGroupItem : Control, IRibbonTabGroupItem
    {
        #region Class Variables...
        private RibbonTabGroup parentRibbonTabGroup;
        #endregion

        #region Properties...
        #region ParentRibbonTabGroup
        public RibbonTabGroup ParentRibbonTabGroup
        {
            get { return parentRibbonTabGroup; }
            set { parentRibbonTabGroup = value; }
        }
        #endregion

        #region RibbonTabGroupItemRowSpan
        public virtual RibbonTabGroupItemRowSpan RibbonTabGroupItemRowSpan
        {
            get { return RibbonTabGroupItemRowSpan.One; }
        }
        #endregion

        #region RealWidth
        public virtual double RealWidth
        {
            get { return ActualWidth;  }
        }
        #endregion

        #region RealHeight
        public virtual double RealHeight
        {
            get { return ActualHeight; }
        }
        #endregion
        #endregion
    }
    #endregion
}